import { Command } from "../class/Command";

export class Status extends Command {
    static commandName: string = "我";
    invoke() {
        const role = this.game.getRole(this.context.getId());
        this.masterRole.message.add([
            `角色:${role.getRoleName()}`,
            `描述:${role.getRoleDescription()}`,
            `最大血量:${role.getMAXHP()}`,
            `血量:${role.getHP()}`,
            `护盾:${role.getShield().get()}`,
            `物理防御:${role.getPhySicsDefend()}`,
            `法术防御:${role.getMaginDefend()}`,
            `物理攻击:${role.getPhysicsAttack()}`,
            `法术攻击:${role.getMagicAttack()}`,
            `技能:${role.getAllMethodInfo().join("、")}`,
            `手牌:${role.cards.map(e => e.getName()).join("、")}`,
        ].join("\r\n"))
    }

}